int countAsterisks(char* s) {
	int flag = 1;
	int count = 0;
	while (*s) {
		if (*s == '|')
			flag = !flag;
		if (flag && *s == '*')
			count++;
		s++;
	}
	return count;
}